//
//  BYAdminLoginViewController.m
//  School+
//
//  Created by Sean Sebastian on 5/15/16.
//  Copyright © 2016 Sean Sebastian. All rights reserved.
//

#import "BYAdminLoginViewController.h"

#import "BYAdminLoginView.h"
#import "AdminAccount.h"

#import "BYAdminHomeViewController.h"


@interface BYAdminLoginViewController () <LoginViewDelegate>

@end

@implementation BYAdminLoginViewController

- (void)loadView
{
    
    
    BYAdminLoginView *view = [[BYAdminLoginView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
    view.delegate = self;
    self.view = view;
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:self action:@selector(backClick)];
    
    self.view.backgroundColor = [UIColor whiteColor];
}

- (void)loginViewLoginClick
{
//    NSLog(@"%@" , [AdminAccount sharedAdminAccount]);
    
    
    [self presentViewController:[[BYAdminHomeViewController alloc] init] animated:YES completion:nil];
    
    
}
- (void)backClick
{
    [self.navigationController popViewControllerAnimated:YES];
}




@end
